<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-orange/easyui.css">

<style type="text/css">
    
</style>
</head>
<body>
   <script type="text/javascript">
        $(function(){
			//初始化表格
			$('#dnshenqin').datagrid({
			    url:'dn_shenqingdan',
			    columns:[[
					{field:'EMPID',width:250,title:'员工编号',align:'center'},
					{field:'EMPNAME',width:250,title:'员工姓名',align:'center'},
					{field:'DEPTNAME',width:250,title:'应聘部门',align:'center'},
					{field:'POTZW',width:250,title:'应聘职位',align:'center'},
					{field:'ALTSSTAT',width:250,title:'状态',align:'center',
						formatter:function(value){
							if(value==1){
								return "未通过"
							}else if(value==2){
								return "已通过"
							}else{
								return "错误状态"
							}
						}
					},
					{field:'caozuo',width:250,title:'操作',align:'center',
						formatter:function(value,row,index){
							return "<span'>同意申请</span>\/<span>否定申请</span>"
						}
					}
			    ]],
			    toolbar:'#dnshenqin',
			    pagination:true,
			    pageNumber:1,
			    pageSize:10,
			    pageList:[10,20,30]
			});
			$("#sousuoan_duinei").click(function(){
				var sskuang=$("#sousuokuang_duinei").val();
				$("#dnshenqin").datagrid("load",{
					w:sskuang
				})
			});
			$(".siershenqing").click(function(){
				$("#dnshenqing").window("open");
			})
			$(".duineiquxiao").click(function(){
				$("#dnshenqing").window("close");
			})
		});
	</script>
    <div class="duineishenq_box">
        <div>
            <div class="topbox">
                <div class="sousuobox">
                    <input type="text" id="sousuokuang_duinei" class="sousuokuang"">
                    <input type="button" id="sousuoan_duinei" value="搜索" class="sousuoan">
                    <input type="button" value="申请" class="siershenqing">
                    <input type="button" value="查看已通过的申请"  class="ytgshenqing">
                </div>
            </div>
            <div class="biaobox">
                 <table id="dnshenqin" class="easyui-datagrid"
                    data-options="width:1000,fitColumns:true,height:500">
                 </table>
            </div>
        </div>
        <div id="dnshenqing" class="easyui-window" title="对内应聘" style="width:400px;height:370px"
		    		data-options="closed:true,minimizable:false,maximizable:false,collapsible:false">
		     <div class="neirongbiox_s">
		         <div class="pai1">员工编号：
		             <!-- <input type="text" class="lei"> -->
		             <select id="empidss"  class="kkssa">
				        	<c:forEach items="${empname }" var="emp">
				        		<option value="${emp.empid }">${emp.empid}--${emp.empname }</option>
				        	</c:forEach>
				        </select>
		         </div>
		         <div class="pai2">应聘部门：
		             <!-- <input type="text" class="lei"> -->
		             <select id="empnameid" class="kkssa" name="deptname">
				        	<c:forEach items="${deptname }" var="dept">
				        		<option value="${dept.deptid }">${dept.deptname }</option>
				        	</c:forEach>
				        </select>
		         </div>
		         <div class="pai3">应聘职位：
		             <!-- <input type="text" class="lei"> -->
		             <select id="mgmidss" class="kkssa">
				        	<c:forEach items="${potname }" var="pot">
				        		<option value="${pot.potid }">${pot.potzw }</option>
				        	</c:forEach>
				        </select>
		         </div>
		         <div class="pai4">
                      <input type="button" class="duineiqueding" value="确定">
                      <input type="button" class="duineiquxiao" value="取消">
                  </div>
		     </div>
		</div>
    </div>
</body>
</html>